﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class OutItem : MonoBehaviour
{
    public Image img;
    public Slider slider;
    public Text weight;


    public void SetValue( float v )
    {
        weight.text = string.Format("{0:F2}", v);
        slider.value = v;
    }
    public void onValueChange()
    {
        weight.text = string.Format("{0:F2}", slider.value);
        Drop.instance.refreshWeight();
    }
}
